<template>
  <div class="identity-container">
     <div class="h">
     <van-cell title="管理员身份认证" class="h-cell" to='/my'>
        <i slot="icon" class="jiazheng icon-fanhui"></i>
     </van-cell>
     <div class="admin">
         <!-- <img src="@/assets/iconbm.png"/> -->
         <i class="xxb">
           <img src="../../../../assets/iconbm.png" alt="">
         </i>
         <span>陈佳容</span>
     </div>
     </div>
     <div class="b">
        <van-cell title="请输入您的用户名和密码进行认证">
            <!-- <i slot="text">|</i> -->
        </van-cell>
      <van-form @submit="onSubmit">
        <van-field
            v-model="username"
            name="用户名"
            label="用户名"
            placeholder="用户名"
            :rules="[{ required: true, message: '请填写用户名' }]"
        />
        <van-field
            v-model="password"
            type="password"
            name="密码"
            label="密码"
            placeholder="密码"
            :rules="[{ required: true, message: '请填写密码' }]"
        />
        <div style="margin: 16px; display: none">
            <van-button round block type="info" native-type="submit" ref="identityBtn">
            提交
            </van-button>
        </div>
      </van-form>
     </div>
     <van-button type="primary" block @click="reqCli">提交认证</van-button>
  </div>
</template>>

<script>
export default {
  data () {
    return {
      username: '',
      password: ''
    }
  },
  methods: {
    onSubmit(values) {
      console.log('submit', values);
    },
    reqCli () {
      console.log(this.$refs.identityBtn)
      this.$refs.identityBtn.click()
    }
  }
}
</script>>
<style scoped lang="less">
  .identity-container {
   z-index: 100;
      background-color: #F8F8F8;
      .van-cell {
        background-color: transparent;
      }
       .van-cell::after {
          border-bottom: none;
        }
      .h {
        background-color: #3F51B5;
        height: 412px;
      .h-cell {
        color: #fff;
        // background-color: transparent;
        font-size: 32px;
        .icon-fanhui {
          padding: 0 26px 0 0;
          font-size: 32px;
        }
      }
    //   .van-cell::after {
    //     border-bottom: none;
    //   }
      .admin {
        display: flex;
        // justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-top: 40px;
        .xxb {
          border-radius: 50%;
          width: 110px;
          height: 110px;
          // background-color: pink;
          img {
            width: 100%;
          }
        }
        span {
          margin-top: 26px;
          color: rgba(255, 255, 255, 100);
          font-size: 28px;
          font-family: PingFangSC-regular;
        }
      }
      }
      .b {
        color: #101010;
        margin-left: 36px;
        margin-top: -72px;
        width: 684px;
        height: 810px;
        border-radius: 30px;
        background-color: #fff;
        z-index: 5px;
      }
      .van-button--primary {
        color: #fff;
        border: none;
        margin-top: 100px;
        height: 80px;
        background-color: #3F51B5;
      }
  }
</style>
